package com.naiterui.ehp.bs.weixin.exception;

import lombok.Getter;

@Getter
public enum WeixinCode {

    SYSTEM_ERROR(19000, "系统繁忙，请稍后再试"),
    WECHAT_LOGIN_FAIL(19100, "微信授权登录失败"),
    PATIENT_NOT_EXIST(19101,"用户不存在，请先关注公众号"),
    USER_NOT_EXIST(19108, "用户信息获取失败，请稍后再试"),
    SMS_CODE_ALREAD_SEND(19109, "验证码短信已发送，请注意查收或稍后再试"),
    SMS_CODE_NOT_MATCH(19110, "短信验证码不正确"),
    USER_NEWS_DETAIL_NOT_EXIST(19112, "信息不存在，请稍后再试"),
    SMS_PHONE_CHECK_FAIL(19113, "手机号码校验未通过"),
    SMS_CODE_CAN_NOT_FREQUENT_SEND(19114, "验证码发送太频繁，请稍后再试"),
    USER_PHONE_NOT_EXIST(19115, "手机号码不存在，请核对后再试"),

    /*
     * 客户套餐相关异常
     */
    CUSTOMER_PHONE_NOT_EXIST(10000, "请先绑定手机号"),
    COMBOPACK_NOT_NOT_EXIST(10001, "套餐信息获取失败，请稍后再试"),
    COMBOPACK_SERVE_NOT_EXIST(10002, "套餐服务信息获取失败，请稍后再试"),
    COMBOPACK_QRCODE_NOT_EXIST(10003, "二维码套餐服务信息获取失败，请稍后再试"),
    COMBOPACK_RECEIVE_NOT_EXIST(10004, "二维码套餐领取信息获取失败，请稍后再试"),
    COMBOPACK_QRCODE_ALREADY_RECEIVE(10005, "您已领取过该套餐卡，在「个人中心」-「套餐」中可查看详细信息"),
    COMBOPACK_QRCODE_ALREADY_RECEIVE_OTHER(10006, "当前套餐已被其他用户领取"),
    COMBOPACK_QRCODE_ACTIVE_FAIL(10007, "当前套餐激活失败，请稍后再试"),

    /*
     * 小程序扩展功能相关
     */
    WECHAT_QRCODE_GENERATE_MISSING_PARAM(11001, "小程序二维码生成失败，参数信息不完整"),
    WECHAT_QRCODE_GENERATE_FAILE(11002, "小程序二维码生成失败，请稍后再试"),

    /*
     * 服务预约相关异常
     */
    CUSTOMER_RESERVATION_INSUFFICIENT_MARGIN(12001, "套餐服务项目余量不足，请选择其他服务"),
    CUSTOMER_RESERVATION_DATA_ERROR(12002, "数据信息获取失败，请稍后重试"),
    CUSTOMER_RESERVATION_NOT_EXIST(12003,"服务预约信息获取失败，请稍后重试"),
    CUSTOMER_RESERVATION_NOT_MODIFY(12004,"该预约不支持修改"),
    CUSTOMER_RESERVATION_ADDRESS_NOT_NULL(12005,"预约上门时地址不能为空"),
    CUSTOMER_RESERVATION_SERVE_ITEM_NOT_NULL(12006,"服务项目ID不能为空"),

    /*
     * 顾客订单相关
     */
    CUSTOMER_ORDER_NOT_EXIST(13001, "顾客订单信息获取失败，请稍后重试"),
    CUSTOMER_ORDER_COMBO_PACK_SERVE_NOT_EXIST(13002, "顾客订单套餐服务信息获取失败，请稍后重试"),
    CUSTOMER_ORDER_PAYMENT_NOT_EXIST(13003, "顾客订单支付信息获取失败，请稍后重试"),
    CUSTOMER_ORDER_ALREAD_RELATED(13004, "套餐订单购买操作进行中，请稍后重试"),
    SERVE_ITEM_NOT_EXIST(13005,"服务信息获取失败，请稍后重试"),
    SAVE_CUSTOMER_ORDER_MISSING_PARAM(13006,"添加订单失败，参数信息不完整"),
    CUSTOMER_ORDER_PAY_CALLBACK_MISSING_PARAM(13007,"订单支付回调失败，参数信息不完整"),
    COUPON_NOT_AVAILABLE(13008,"该优惠券不可使用"),

    /**
     * 三方礼券相关
     */
    CUSTOMER_CUSTOMER_TRIPARTITE_COUPON_IS_NULL(14001,"该礼券不存在"),
    ;

    private final int code;
    private final String msg;

    WeixinCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
